Date : 08/31/15

README File for "Does the Gender of Offspring Affect Parental Political Orientation?" by Byungkyu Lee and Dalton Conley, Social Forces, forthcoming, 2015 (doi:10.1093/sf/sov098).

This file contains Stata Do files and R codes to reproduce all figures and tables appeared in the paper "Does the Gender of Offspring Affect Parental Political Orientation?" as well as online supplementary materials published in Social Forces in 2015. The original data set are not included here -- which are publicly available --  but can be downloaded at:

1) GSS - Smith, Tom W., Peter Marsden, Michael Hout, and Jibum Kim. General Social Surveys, 1972–2012 : http://www3.norc.org/GSS+Website/ (last accessed on 14 March 2014).
-- GSS7212_R2.dta

2) ESS - European Social Survey (2002-2012) Round 1-6 Data. Norwegian Social Science Data Services, Norway – Data Archive and distributor of ESS data. Available from: www.europeansocialsurvey.org (last accessed on 14 March 2014).
-- ess1e06_3.xpt, ess2e03_3.xpt, ess3e03_4.xpt, ess4e04_1.xpt, ess5e03.xpt, ess6e01_2.dta

3) KGSS - Kim, Sang-Wook. Korean General Social Survey (KGSS), 2003–2010. Ann Arbor, MI: Inter-university Consortium for Political and Social Research [distributor], Available from: http://www.icpsr.umich.edu/icpsrweb/ICPSR/series/288 (last assessed 14 March 2014).
-- 34655-0001-Data.dta, 34660-0001-Data.dta, 34661-0001-Data.dta, 34662-0001-Data.dta, 34663-0001-Data.dta, 34664-0001-Data.dta, 34665-0001-Data.dta, 34666-0001-Data.dta

We included two data files (daughter_analytic.dta for GSS and ESS; kgss_analytic.dta for KGSS) that are generated by running Daughter_Data Setup.do and KGSS_Daughter_Data Setup_Analysis.do, which later will be used to replicate all tables and figures. If you set up the working directory containing both data files in your computer in all stata do files and R codes, then you can produce following figures and tables by running the corresponding Stata do-files and R codes. 

Main -----------------------------------------
Table 1 -- Daughter_Analysis.do
Table 2 -- Daughter_Analysis.do
Table 3 -- Daughter_Analysis.do

Figure 1 -- Daughter_Analysis.do + Excel
Figure 2 -- Daughter_Analysis.do + Daughter_Figure23.R
Figure 3 -- Daughter_Analysis.do + Daughter_Figure23.R
Figure 4 -- Daughter_Bart_Data Setup.R + Daughter_Analysis_Bart_Figure4.R

Online Supplementary Materials ---------------
Table S1 -- Daughter_Analysis.do
Table S2 -- Daughter_Analysis.do
Table S3 -- Daughter_Analysis.do
Table S4 -- Daughter_Analysis.do
Table S5 -- Daughter_Analysis.do
Table S6 -- Daughter_Analysis.do
Table S7 -- Daughter_Analysis.do
Table S8 -- Daughter_Bart_Data Setup.R + Daughter_Analysis_Bart_FigureS3_TableS8.R 
Table S9 -- Daughter_Analysis.do
Table S10 -- Daughter_Analysis.do

Figure S1 -- Daughter_Analysis.do + ESS_Occupation_SEIscores + Daughter_FigureS1_SEI.R 
Figure S2 -- Daughter_Bart_Data Setup.R + Daughter_Analysis_Bart_FigureS2_TableS8.R 
Figure S3 -- KGSS_Daughter_Data Setup_Analysis.do + Daughter_FigureS3_KGSS.R 

Program Version Information : 
-- Stata 12 MP version for all analysis 
-- R 2.13.2 for modiefied BART package (*)
-- R 3.0.3 for original BART package 
* NOTE. modified BART package by Green and Kern (2012) can be downloaded at http://artsandsciences.sc.edu/people/kernh/publications/bart.html  

If you have any question on these files or fail to reproduce any of figures or tables, then please correspond to Byungkyu Lee (byungkyu.lee@columbia.edu). 

